const crypto = require('crypto');


const sha256 = function(str){
    let sha = crypto.createHash('sha256');
    return sha.update(str).digest('hex');
}

module.exports = {
    "secretKey":"bankbank",
    "algorithms":["HS256"],
    "unless":{
        path:[
            '/','/blank','/users/login',/^\/files\/getById.+/,/^\/detail/,/^\/pdfjs\//
        ]
    },
    sha256
}